<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>AngulaJS 服务</title>
		<style>
			body{
			  font-family: 'microsoft yahei',Arial,sans-serif;
			}
			
			h1{
			  font-weight:500;
			  font-size:24px;
			}

		</style>
	</head>

	<body>
		<h1>AngularJS 国际化支持</h1>
		<hr />
		
		<div ng-app="mainApp" ng-controller="i18nController">
			货币格式：{{fees | currency}} <br /><br />
			日期格式：{{admissiondate | date}}<br /><br />
			数字格式：{{rollno | number}}<br /><br />
		</div>
		
		<script src="http://cdn.gbtags.com/angular.js/1.2.20/angular.min.js"></script>
		<!-- 请注释掉下面script，看看对于不同locale的支持 -->
		<script src="http://cdn.gbtags.com/angular.js/1.2.20/i18n/angular-locale_zh-cn.js"></script>
<!-- 更多locale: http://cdn.gbtags.com/gbcdnservice/libraries/angular.html -->
		<script>
			var mainApp = angular.module('mainApp', []);
			
			mainApp.controller('i18nController', function($scope){
				$scope.fees = 100;
				$scope.admissiondate = new Date();
				$scope.rollno = 123.45;
			});
		</script>
	</body>

</html>